export default [
  {
    url: "/mock/menulist",
    method: "post",
    response: () => {
      return {
        code: 200,
        success: true,
        message: null,
        result: {
          permissions: ["*:*:*"],
          list: [
            {
              path: "/",
              redirect: "/home",
              hidden: true,
            },
            {
              path: "/home",
              component: "Layout",
              redirect: "/home/home",
              hidden: false,
              meta: {
                icon: "el-icon-location",
                title: "首页Layout",
                trasition: "animate__fadeIn",
              },
              children: [
                {
                  path: "home",
                  component: "/modules/home/home",
                  hidden: false,
                  meta: {
                    icon: "el-icon-location",
                    title: "首页",
                    trasition: "animate__fadeIn",
                  },
                },
              ],
            },
            {
              path: "/demo",
              component: "Layout",
              redirect: "/demo/demo01",
              hidden: false,
              meta: {
                icon: "el-icon-location",
                title: "DEMO",
                trasition: "animate__fadeIn",
              },
              children: [
                {
                  path: "demo01",
                  component: "/modules/demo/demo01/demo01",
                  hidden: false,
                  meta: {
                    icon: "el-icon-location",
                    title: "demo01",
                    trasition: "animate__fadeIn",
                  },
                },
                {
                  path: "demo02",
                  component: "/modules/demo/demo02/demo02",
                  hidden: false,
                  meta: {
                    icon: "el-icon-location",
                    title: "demo02",
                    trasition: "animate__fadeIn",
                  },
                },
                {
                  path: "demo03",
                  component: "/modules/demo/demo03/demo03",
                  hidden: false,
                  meta: {
                    icon: "el-icon-location",
                    title: "demo03",
                    trasition: "animate__fadeIn",
                  },
                },
              ],
            },
            // 子包路由 配置和上面一摸一样只是在meta中多了modules属性
            {
              path: "/oils",
              component: "Layout",
              redirect: "/oils/oilsApply",
              hidden: false,
              meta: {
                modules: "oils",
                icon: "el-icon-location",
                title: "油品管理",
                trasition: "animate__fadeIn",
              },
              children: [
                {
                  path: "oilsApply",
                  component: "/modules/oilsApply/index",
                  hidden: false,
                  meta: {
                    modules: "oils",
                    icon: "el-icon-location",
                    title: "加油申请",
                    trasition: "animate__fadeIn",
                  },
                },
                {
                  path: "oilsReport",
                  component: "/modules/oilsReport/index",
                  hidden: false,
                  meta: {
                    modules: "oils",
                    icon: "el-icon-location",
                    title: "加油报告",
                    trasition: "animate__fadeIn",
                  },
                },
                {
                  path: "oilsForm",
                  component: "/modules/oilsForm/index",
                  hidden: false,
                  meta: {
                    modules: "oils",
                    icon: "el-icon-location",
                    title: "油品报表",
                    trasition: "animate__fadeIn",
                  },
                },
              ],
            },
            {
              path: "/knowledge",
              component: "Layout",
              redirect: "/knowledge/info",
              hidden: false,
              meta: {
                modules: "knowledge",
                icon: "el-icon-location",
                title: "航海资料库",
                trasition: "animate__fadeIn",
              },
              children: [
                {
                  path: "info",
                  component: "/modules/info/index",
                  hidden: false,
                  meta: {
                    modules: "knowledge",
                    icon: "el-icon-location",
                    title: "航海资料",
                    trasition: "animate__fadeIn",
                  },
                },
                {
                  path: "infoType",
                  component: "/modules/infoType/index",
                  hidden: false,
                  meta: {
                    modules: "knowledge",
                    icon: "el-icon-location",
                    title: "航海资料分类",
                    trasition: "animate__fadeIn",
                  },
                },
                {
                  path: "infoApply",
                  component: "/modules/infoApply/index",
                  hidden: false,
                  meta: {
                    modules: "knowledge",
                    icon: "el-icon-location",
                    title: "航海资料申请",
                    trasition: "animate__fadeIn",
                  },
                },
              ],
            },
          ],
        },
      };
    },
  },
];
